package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.anno.AutoFill;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: sky-take-out
 * @description:
 * @author: fmp
 * @create: 2023-04-09 15:10
 * @Version 1.0
 **/
@Mapper
public interface DishFlavorMapper {
    //修改dish_flavor表中的菜品信息
    void updateDishFlavor(@Param("flavor") DishFlavor flavor);
    //根据categoryId查询
    List<DishFlavor> SelectedDishById(@Param("id") Long id);
    //批量删除
    void deleteDishById(@Param("ids") List<Long> ids);
    //根据id删除口味信息
    void deleteByUId(@Param("id") Long id);
    //批量增加//增加dish_flavor表中的菜品信息
    void insertDishList(@Param("flavors") List<DishFlavor> flavors);

    List<DishFlavor> selectDishFlavorByDishId(Long id);
}
